package com.qeado.admin.dao;

import java.util.List;
import java.util.Map;

import com.qeado.admin.model.AdminAccount;
import com.qeado.admin.model.Menu;
import com.qeado.admin.model.Role;

public interface AdminAccountManageDao {

	AdminAccount validateUser(String loginName, String password);

	List<Menu> getMenuListByUser(AdminAccount userInfo);

	void saveUserInfo(AdminAccount userInfo);

	void updateUserInfo(AdminAccount userInfo);

	void updateUserPassword(AdminAccount userInfo);

	List<AdminAccount> searchAdminAccount(AdminAccount account);

	AdminAccount searchAdminAccountById(String id);

	void updateAdminAccount(AdminAccount account);

	void saveAdminAccount(AdminAccount account);

	void deleteAdminAccount(String id);

	List<Role> searchRoleList();

	void deleteAdminAccountRole(Map<String, String> map);

	void saveAdminAccountRole(Map<String, String> map);

	List<Menu> getMenuListByMenuIdAndRoleId(Map<String, String> map);

	String searchAdminAccountByName(AdminAccount account);

	Object validateOldpassword(AdminAccount account);

	Object searchAccountRole(AdminAccount account);

}
